import styles from '../../styles/Modal.module.css'
import {useDispatch, useSelector} from 'react-redux'

export default function Modal({visible, ...rest}){
  return visible ? <MyModal {...rest}/> : null
}

function MyModal({children}) {
  return (
    <div className={styles.modal}>
      {children}
    </div>
  )
}